'''主函数'''
from otp.otp import get_auth_url, get_image_b64, get_secret, get_totp_token

if __name__ == "__main__":
    # name = "hello_world"
    SECERT = get_secret()
    result = get_totp_token(SECERT)

    AUTH_URL = get_auth_url(user_id="name", secret=SECERT, issuer="zuzhi")

    get_image_b64(AUTH_URL)

    print(SECERT)
    print(result)
